<?php
namespace app\common\validate;

use think\Validate;

/**
 * 渠道登录验证
 * Class Channel
 * @package app\common\validate
 */
class Article extends Validate
{
    protected $connection = 'db_config_aiqi';
    protected $rule = [
        'category' => 'require',
        'title' => 'require',
        'content'   => 'require',
        'star_date' => 'require',
        'end_date' => 'require',
    ];

    protected $message = [
        'category.require' => '请选择分类',
        'title.require' => '请输入标题',
        'content.require'   => '请输入内容',
        'star_date.require'   => '请选择开始时间',
        'end_date.require'   => '请选择结束时间',
    ];
}